<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>应纳个人所得税</title>
</head>

<body>
</body>

</html>
<!--个人所得税-->
<script>
    var jiZhun = 7662;
    var yueShou = 10000;
    var yingNa = yueShou - jiZhun * 0.225 - 3500;
    // console.log(yingNa);
    if (yueShou <= 7662) {
        yingNa = yueShou - yueShou * 0.225 - 3500;
        if(yingNa<=0){
            console.log("对不起工资太低")
        }
        else if(yingNa <= 1500) {
            console.log(yingNa * 0.03);
        }
        else if (yingNa <= 4500) {
            console.log(yingNa * 0.1 - 105);
        }

    }
    else {
        // if(yingNa<=0){
        //     console.log("对不起工资太低")
        // }
        // else if (yingNa <= 1500) {
        //     console.log(yingNa * 0.03);
        // }
        if (yingNa <= 4500) {
            console.log(yingNa * 0.1 - 105);
        }
        else if (yingNa <= 9000) {
            console.log(yingNa * 0.2 - 555);
        }
        else if (yingNa <= 35000) {
            console.log(yingNa * 0.25 - 1005);
        }
        else if (yingNa <= 55000) {
            console.log(yingNa * 0.3 - 2755);
        }
        else if (yingNa <= 80000) {
            console.log(yingNa * 0.35 - 5505);
        }
        else {
            console.log(yingNa * 0.35 - 5505);
        }
    }

</script>